<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:forgeview="http://jboss.org/forge/view"	
	template="/resources/templates/pageTemplate.xhtml">

	<f:metadata>
		<f:viewParam name="id" value="#{finTransTmd02FromOrgBean.id}"/>
		<f:event type="preRenderView" listener="#{finTransTmd02FromOrgBean.retrieve}"/>
	</f:metadata>

	<ui:param name="pageTitle" value="Create Fin Trans Tmd 02From Org"/>

	<ui:define name="header">
		Fin Trans Tmd 02From Org
	</ui:define>

	<ui:define name="subheader">
		<c:choose>
			<c:when test="#{!empty finTransTmd02FromOrgBean.id}">
				Edit existing Fin Trans Tmd 02From Org
			</c:when>
			<c:otherwise>
				Create a new Fin Trans Tmd 02From Org
			</c:otherwise>
		</c:choose>
	</ui:define>

	<ui:define name="footer"/>

	<ui:define name="main">
		<h:form id="create">
			<h:messages globalOnly="true" styleClass="error"/>

			<h:panelGrid columnClasses="label,component,required" columns="3">
				<h:outputLabel for="finTransTmd02FromOrgBeanFinTransTmd02FromOrgFinTrans" value="Fin Trans:"/>
				<h:panelGroup>
					<h:selectOneMenu converter="#{finTransBean.converter}" id="finTransTmd02FromOrgBeanFinTransTmd02FromOrgFinTrans" value="#{finTransTmd02FromOrgBean.finTransTmd02FromOrg.finTrans}">
						<f:selectItem/>
						<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{finTransBean.all}" var="_item"/>
					</h:selectOneMenu>
					<h:message for="finTransTmd02FromOrgBeanFinTransTmd02FromOrgFinTrans" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="finTransTmd02FromOrgBeanFinTransTmd02FromOrgFinTransTmd02FromOrgDetails" value="Fin Trans Tmd 02From Org Details:"/>
				<h:panelGroup>
					<ui:param name="_collection" value="#{finTransTmd02FromOrgBean.finTransTmd02FromOrg.finTransTmd02FromOrgDetails}"/>
					<h:dataTable id="finTransTmd02FromOrgBeanFinTransTmd02FromOrgFinTransTmd02FromOrgDetails" styleClass="data-table" value="#{forgeview:asList(_collection)}" var="_item">
						<h:column>
							<f:facet name="header">
								<h:outputText value="Acc No"/>
							</f:facet>
							<h:link outcome="/form/finTransTmd02FromOrgDetail/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemAccNo" value="#{_item.accNo}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="finTransTmd02FromOrgDetailBeanAddAccNo" value="#{finTransTmd02FromOrgDetailBean.add.accNo}"/>
								<h:message for="finTransTmd02FromOrgDetailBeanAddAccNo" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Flag Dr Cr"/>
							</f:facet>
							<h:link outcome="/form/finTransTmd02FromOrgDetail/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemFlagDrCr" value="#{_item.flagDrCr}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="finTransTmd02FromOrgDetailBeanAddFlagDrCr" value="#{finTransTmd02FromOrgDetailBean.add.flagDrCr}"/>
								<h:message for="finTransTmd02FromOrgDetailBeanAddFlagDrCr" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Jn Amt Dr"/>
							</f:facet>
							<h:link outcome="/form/finTransTmd02FromOrgDetail/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemJnAmtDr" value="#{_item.jnAmtDr}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="finTransTmd02FromOrgDetailBeanAddJnAmtDr" value="#{finTransTmd02FromOrgDetailBean.add.jnAmtDr}"/>
								<h:message for="finTransTmd02FromOrgDetailBeanAddJnAmtDr" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Jn Amt Cr"/>
							</f:facet>
							<h:link outcome="/form/finTransTmd02FromOrgDetail/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemJnAmtCr" value="#{_item.jnAmtCr}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="finTransTmd02FromOrgDetailBeanAddJnAmtCr" value="#{finTransTmd02FromOrgDetailBean.add.jnAmtCr}"/>
								<h:message for="finTransTmd02FromOrgDetailBeanAddJnAmtCr" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Status Posted"/>
							</f:facet>
							<h:link outcome="/form/finTransTmd02FromOrgDetail/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemStatusPosted" value="#{_item.statusPosted}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="finTransTmd02FromOrgDetailBeanAddStatusPosted" value="#{finTransTmd02FromOrgDetailBean.add.statusPosted}"/>
								<h:message for="finTransTmd02FromOrgDetailBeanAddStatusPosted" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column footerClass="remove-column" headerClass="remove-column">
							<h:commandLink action="#{_collection.remove(_item)}" styleClass="remove-button"/>
							<f:facet name="footer">
								<h:commandLink action="#{_collection.add(finTransTmd02FromOrgDetailBean.added)}" id="finTransTmd02FromOrgBeanFinTransTmd02FromOrgFinTransTmd02FromOrgDetailsAdd" styleClass="add-button">
									<f:setPropertyActionListener target="#{finTransTmd02FromOrgDetailBean.add.finTransTmd02FromOrg}" value="#{finTransTmd02FromOrgBean.finTransTmd02FromOrg}"/>
								</h:commandLink>
							</f:facet>
						</h:column>
					</h:dataTable>
				</h:panelGroup>
				<h:outputText/>
			</h:panelGrid>

			<div class="buttons">
				<h:commandLink value="Save" action="#{finTransTmd02FromOrgBean.update}" styleClass="btn btn-primary"/>
				<c:choose>
					<c:when test="#{!empty finTransTmd02FromOrgBean.id}">
						<h:link value="Cancel" outcome="view" styleClass="btn btn-primary">
							<f:param name="id" value="#{finTransTmd02FromOrgBean.id}"/>
						</h:link>
						<h:commandLink value="Delete" action="#{finTransTmd02FromOrgBean.delete}" styleClass="btn btn-primary"/>
					</c:when>
					<c:otherwise>
						<h:link value="Cancel" outcome="search" styleClass="btn btn-primary"/>
					</c:otherwise>
				</c:choose>
			</div>
		</h:form>
	</ui:define>

</ui:composition>